package com.smedi.ismedi.authority.starter.common;

import java.util.concurrent.TimeUnit;

import static java.util.concurrent.TimeUnit.MINUTES;

/**
 * 常量类
 *
 * @author jiangqinxun
 * @date 2022/8/13 23:24
 */
public class Constant {
    /**
     * 默认字符串
     */
    public static String DEFAULT_STRING = "";
    /**
     * 默认redis过期时间数量：5
     */
    public static long REDIS_DEFAULT_TIMEOUT = 5L;
    /**
     * 默认redis过期时间单位：分钟
     */
    public static TimeUnit REDIS_DEFAULT_TIMEUNIT = MINUTES;
    /**
     * 成功 响应编码
     */
    public static String SUCCESS_CODE = "SUCCESS";
    /**
     * 参数异常 响应编码
     */
    public static String ARGUMENT_ERROR = "ARGUMENT_ERROR";
    /**
     * 未知异常 响应编码
     */
    public static String UNKNOWN_ERROR = "UNKNOWN_ERROR";
    /**
     * token前缀
     */
    public static String TOKEN_PREFIX = "TOKEN:";
    /**
     * 冒号
     */
    public static String COLON = ":";
}
